import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import 'virtual:svg-icons-register';
import 'uno.css'
import { createPinia } from "pinia";
import router from "@/router"
import 'element-plus/theme-chalk/dark/css-vars.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import i18n from '@/lang/index';
import setupPlugins from "@/plugins";

// import { setupDirective } from '@/directive';
const app = createApp(App);
// setupDirective(app);
app.use(createPinia());
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router)
app.use(setupPlugins);
app.mount("#app");
